﻿@{
    ViewBag.Title = "Index";
}
<h2>Start</h2>

@section Sidebar
{
    @foreach(var assignment in ViewBag.AssignmentList)
    {
        <span>
            @assignment.AssignmentName
            <a style="font-weight:bolder">
                @assignment.Consultant.GivenName
                @assignment.Consultant.Surname
            </a>

            @Html.ActionLink("Inspektera", "ViewAssignment","Handler", new { AssignmentId = assignment.AssignmentId }, null)
            
        </span>
         <br />
    }
}

